<template>
	<div>
		<h1>你好！</h1>
		<button @click="showInfo">点我欢迎你</button>
	</div>
</template>

<script>
	export default {
		name:'Hello',
		methods: {
			showInfo(){
				alert('过年好！！')
			}
		},
	}
</script>

<style scoped>
	h1{
		background-color: red;
		color: yellow;
	}
</style>